package com.ruoyi.inventory.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.inventory.mapper.InventoryApproveMapper;
import com.ruoyi.inventory.domain.InventoryApprove;
import com.ruoyi.inventory.service.IInventoryApproveService;

/**
 * 调拨审批Service业务层处理
 * 
 * @author cy
 * @date 2024-10-31
 */
@Service
public class InventoryApproveServiceImpl implements IInventoryApproveService 
{
    @Autowired
    private InventoryApproveMapper inventoryApproveMapper;

    /**
     * 查询调拨审批
     * 
     * @param id 调拨审批主键
     * @return 调拨审批
     */
    @Override
    public InventoryApprove selectInventoryApproveById(Long id)
    {
        return inventoryApproveMapper.selectInventoryApproveById(id);
    }

    /**
     * 查询调拨审批列表
     * 
     * @param inventoryApprove 调拨审批
     * @return 调拨审批
     */
    @Override
    public List<InventoryApprove> selectInventoryApproveList(InventoryApprove inventoryApprove)
    {
        return inventoryApproveMapper.selectInventoryApproveList(inventoryApprove);
    }

    /**
     * 新增调拨审批
     * 
     * @param inventoryApprove 调拨审批
     * @return 结果
     */
    @Override
    public int insertInventoryApprove(InventoryApprove inventoryApprove)
    {
        return inventoryApproveMapper.insertInventoryApprove(inventoryApprove);
    }

    /**
     * 修改调拨审批
     * 
     * @param inventoryApprove 调拨审批
     * @return 结果
     */
    @Override
    public int updateInventoryApprove(InventoryApprove inventoryApprove)
    {
        return inventoryApproveMapper.updateInventoryApprove(inventoryApprove);
    }

    /**
     * 批量删除调拨审批
     * 
     * @param ids 需要删除的调拨审批主键
     * @return 结果
     */
    @Override
    public int deleteInventoryApproveByIds(Long[] ids)
    {
        return inventoryApproveMapper.deleteInventoryApproveByIds(ids);
    }

    /**
     * 删除调拨审批信息
     * 
     * @param id 调拨审批主键
     * @return 结果
     */
    @Override
    public int deleteInventoryApproveById(Long id)
    {
        return inventoryApproveMapper.deleteInventoryApproveById(id);
    }
}
